#ifndef VD_IO_H
#define VD_IO_H

#include "device-mapper.h"

struct Target_Scsi_Cmnd_t;

#define MAX_CDB_LEN 16

struct vd_io{
    int rw;
    struct mapped_device *md;
    struct vd_table *map;
    
    unsigned char *org_cdb;
    unsigned char cdb[MAX_CDB_LEN];
    void *org_private;
    unsigned int  (* done)(struct Target_Scsi_Cmnd_t* cmd);
     
    struct Target_Scsi_Cmnd_t *org_cmnd;
    struct list_head iolist;
};

#endif

